package dealfinder

class User {
    
    String firstName
    String lastName
    int phoneNumber
    
    static hasMany = [deals : Deal]
    static mappedby = [deals: "users"]
    
   
    static constraints = {
        firstName(nullable: false)
        lastName(nullable: false)
        phoneNumber(nullable: false)
    }
}
